package cn.kgc.vue.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.Max;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName score
 */
@TableName(value ="score")
@Data
@ExcelTarget("score")
public class Score implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 班级
     */
    @Excel(name="班级")
    private String clazz;

    /**
     * 考生姓名
     */
    @Excel(name="姓名")
    private String studentName;

    /**
     * 考试成绩
     */
    @Max(value = 100)
    @Excel(name="成绩")
    private Double score;

    /**
     * 考试时间
     */
    @Excel(name="考试时间",importFormat = "yyyy-MM-dd",exportFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date examTime;

    /**
     * 考生学号
     */
    @Excel(name="学号")
    private String studentNo;

    @TableLogic
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}